<#assign  path=request.contextPath />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta content="IE=7" http-equiv="X-UA-Compatible">
    <title>phpcmsV9 - 后台管理中心</title>

    <link type="text/css" rel="stylesheet" href="${path}/statics/css/reset.css">
    <link type="text/css" rel="stylesheet" href="${path}/statics/css/zh-cn-system.css">
    <link type="text/css" rel="stylesheet" href="${path}/statics/css/table_form.css">
    <link media="screen" title="styles1" href="${path}/statics/css/style/zh-cn-styles1.css" type="text/css" rel="stylesheet">
    <link media="screen" title="styles2" href="${path}/statics/css/style/zh-cn-styles2.css" type="text/css"
            rel="alternate stylesheet">
    <link media="screen" title="styles3" href="${path}/statics/css/style/zh-cn-styles3.css" type="text/css"
            rel="alternate stylesheet">
    <link media="screen" title="styles4" href="${path}/statics/css/style/zh-cn-styles4.css" type="text/css"
            rel="alternate stylesheet">
    <link href="${path}/statics/css/tips.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="${path}/statics/css/validator/jquery.validator.css">

    <script src="${path}/statics/js/jquery-1.8.3.min.js" type="text/javascript" language="javascript"></script>
    <script type="text/javascript" src="${path}/statics/js/validator/jquery.validator.js"></script>
    <script type="text/javascript" src="${path}/statics/js/validator/local/zh_CN.js"></script>

    <script src="${path}/statics/js/art/jquery.artDialog.js?skin=blue" type="text/javascript" language="javascript"></script>
    <script src="${path}/statics/js/art/iframeTools.js" type="text/javascript" language="javascript"></script>
    <script src="${path}/statics/js/admin_common.js" type="text/javascript" language="javascript"></script>
    <script src="${path}/statics/js/styleswitch.js" type="text/javascript" language="javascript"></script>
    <script src="${path}/statics/js/commons/common.js" type="text/javascript" language="javascript"></script>
    <script src="${path}/statics/js/commons/commonCheck.js" type="text/javascript" language="javascript"></script>
    <script charset="UTF-8" src="${path}/statics/js/formvalidator.js" type="text/javascript" language="javascript"></script>
    <script charset="UTF-8" src="${path}/statics/js/formvalidatorregex.js" type="text/javascript"
            language="javascript"></script>
    <script type="text/javascript">
        $(function ()
        {

        });

        function save()
        {

            if (isBlank($("#title").val()))
            {
                show_msgbox("", "title不能为空");
                return;
            }

//            var data = getJson("", "/shezhi_mgr/hotel_codecheck/?objid=&code_=" + $("#code_").val() + "&etag=" + new Date());
//            if (data["exist"])
//            {
//                show_msgbox("", "编码已经存在");
//                return;
//            }


            if (isBlank($("#content").val()))
            {
                show_msgbox("", "内容不能为空");
                return;
            }

            var args = "objid=&title=" + $("#title").val() + "&content=" + $("#content").val()  ;
            var rs = getJson(args, "${path}/curd/do_addup2/");
            if (rs["reps_code"] == "0")
            {
                show_msgbox("", "保存成功");
                redirect("${path}/curd/show2/");
            }
            else
            {
                show_msgbox("", rs["reps_desc"]);
            }

        }


    </script>
</head>
<body>


<div class="subnav line-x">
    <div class="content-menu ib-a blue">
        <div style="height: 30px;width: 200px;float: left">
            <a href="javascript:history.go(-1);"><em>返回</em></a>
        </div>
        <div class="msgbox" style="float: left">
            <span class="errmsg"></span><span class="errclose">×</span>
        </div>
    </div>
    <div class="clear"></div>
</div>


<style type="text/css">
    html {
        _overflow-y: scroll
    }
</style>

<div class="pad-10">
    <form id="fomr1">
        <table width=100% class="table_form contentWrap">
            <tr>
                <th width="50">title</th>
                <td>
                    <input type="text" value="" class="input-text" id="title" name="title">
                </td>
            </tr>
            <tr>
                <th width="50">content</th>
                <td>
                    <input type="text" value="" class="input-text" id="content" name="content">
                </td>
            </tr>

            <tr>
                <th colspan="2">
                    <div class="pad-lr-10 lf">
                        <input type="button" class="button" onclick="save()" value="确定">
                    </div>
                </th>
            </tr>
        </table>
    </form>
</div>

</body>
</html>